<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>信息管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
         
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/cms/taskGdp/">信息列表</a>
		</li>
	</ul>
	<form:form id="searchForm" modelAttribute="taskOperation"
		action="${ctx}/cms/taskGdp/list" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<ul class="ul-form">
			<%-- <li><label>关键字段：</label> <form:input path="keyfield"
					htmlEscape="false" maxlength="50" class="input-medium" /></li> --%>
			<li><label>产品字段：</label> <form:input path="productid"
					htmlEscape="false" maxlength="50" class="input-medium" /></li>
			<li><label>产品名称：</label> <form:input path="productname"
					htmlEscape="false" maxlength="128" class="input-medium" /></li>
			<li><label>工段任务：</label> <form:input path="opdesc"
					htmlEscape="false" maxlength="8" class="input-medium" /></li>
			<li><label>分派任务：</label> <form:input path="dptask"
					htmlEscape="false" maxlength="8" class="input-medium" /></li>
			<li><label>部门：</label> <form:input path="dept"
					htmlEscape="false" maxlength="8" class="input-medium" /></li>
			<li><label style="display:inline">计划开工日期：</label> <input
				name="pdate" type="text" readonly="readonly" maxlength="20"
				class="input-medium Wdate"
				value="<fmt:formatDate value="${taskOperation.pdate}" pattern="yyyy-MM-dd"/>"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" />
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary"
				type="submit" value="查询" />
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}" />
	<table id="contentTable" style="width: 1600px"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<!-- <th>id</th> -->
				<th>关键字段</th>
				<th>产品id</th>
				<th>产品名称</th>
				<th>工序</th>
				<th>子任务</th>
				<th>部门</th>
				<th>任务计划日期</th>
				<th>产值a</th>
				<th>产值b</th>
				<th>产值c</th>
				<th>产值d</th>
				<th>产值e</th>
				<th>产值f</th>
				<th>产值g</th>
				<th>产值h</th>
				<th>任务是否完工</th>
				<th>是否工段完成</th>
				<shiro:hasPermission name="cms:taskGdp:edit">
					<th>操作</th>
				</shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="taskOperation">
				<tr>
					<%-- <td>${taskOperation.id}</td> --%>
					<td>${taskOperation.keyfield}</td>
					<td>${taskOperation.productid}</td>
					<td>${taskOperation.productname}</td>
					<td>${taskOperation.opdesc}</td>
					<td>${taskOperation.dptask}</td>
					<td>${taskOperation.dept}</td>
					<td><fmt:formatDate value="${taskOperation.pdate}"
							pattern="yyyy-MM-dd" />
					</td>
					<td>${taskOperation.a}</td>
					<td>${taskOperation.b}</td>
					<td>${taskOperation.c}</td>
					<td>${taskOperation.d}</td>
					<td>${taskOperation.e}</td>
					<td>${taskOperation.f}</td>
					<td>${taskOperation.g}</td>
					<td>${taskOperation.h}</td>
					<td>${taskOperation.istaskcomplete}</td>
					<td>${taskOperation.ispartcomplete}</td>
					<shiro:hasPermission name="cms:taskGdp:edit">
						<td><a href="${ctx}/cms/taskGdp/form?id=${taskOperation.id}">修改</a>
							<%-- <a href="${ctx}/cms/taskOperation/delete?id=${taskOperation.id}" onclick="return confirmx('确认要删除该信息吗？', this.href)">删除</a></td> --%>
					</shiro:hasPermission>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>